﻿using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

namespace ELF.Modules;

public interface IModule
{
    /// <summary>
    /// 配置服务
    /// </summary>
    Task ConfigureServicesAsync(IHostApplicationBuilder builder);

    /// <summary>
    /// 应用初始化
    /// </summary>
    Task InitializeAsync(IApplicationBuilder app);
}
